<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java"  pageEncoding="UTF-8"%>
<%@page import="java.util.List"%>
<%@page import="com.infodms.dms.po.TtAsWrLabourPricePO"%>
<%@page import="com.infodms.dms.util.StringUtil"%>
<%
	String contextPath = request.getContextPath();
	List<TtAsWrLabourPricePO> lists = (List<TtAsWrLabourPricePO>)request.getAttribute("lists");
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="${contextPath}/common/jsp_head_new.jsp" />
<title>索赔工时单价设定</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<div class="navigation">
  <img src="<%=contextPath%>/img/nav.gif" />&nbsp;当前位置： 售后服务管理&gt;索赔基本数据&gt;索赔工时单价设定</div>
<form name='fm' id='fm' method="post">
<table class="table_edit" >
	<tr>
 		<td width="10%" align="right">经销商代码：</td>
 		<td width="60%">
 			<textarea cols="50" rows="2" id="dealer_code" name="dealer_code"></textarea>&nbsp;
 			<input type="hidden" name="dealer_id" id="dealer_id"/>
 			<input type="button" value="..." class="mini_btn" onclick="showOrgDealer('dealer_code','dealer_id','true','','true','','10771002');"/>&nbsp;
 			<input type="button" value="清除" class="normal_btn" onclick="wrapOut();"/>
 		</td>
	</tr>
	<tr>
		<td width="10%" align="right">经销商名称：</td>
		<td width="20%"><input type="text" class="middle_txt" name="dealer_name"/></td>
	</tr>
	<tr>
 		<td colspan="3" align="center">
 			<input class="normal_btn" type="button" value="查询" onclick="mainQuery();"/> 
 			&nbsp;&nbsp;
 			<input class="normal_btn" type="button" onclick="goAdd();" value="新增"/>
 		</td>
	</tr>
</table>
<!--分页  -->
	<jsp:include page="${contextPath}/queryPage/orderHidden.html" />
	<jsp:include page="${contextPath}/queryPage/pageDiv.html" />

</form>
<script type="text/javascript">
	var myPage;
	var url = '<%=contextPath%>/claim/basicData/ClaimBasicLabourPrice/laborPriceMainQuery.json' ;
	
	var title = null ;

	var columns = [
	               {header:'序号',width:'8%',align:'center',renderer:getIndex},
	               {header:'经销商代码',width:'12%',align:'center',dataIndex:'DEALER_CODE'},
	               {header:'经销商名称',width:'14%',align:'center',dataIndex:'DEALER_NAME'},
	                <%
              		TtAsWrLabourPricePO po = null ;
              		for(int i=0;i<lists.size();i++){
              			po = lists.get(i);
             	    %>
              		{id:'action',header:'<%=po.getModeType()%>',width:'10%',align:'center',dataIndex:'<%=StringUtil.fmtSpecialStr(po.getModeType())%>'},
              		<%
              			}
              		%>
	               {header:'操作',width:'8%',align:'center',renderer:myHandler}
		           	];
	function mainQuery(){
		__extQuery__(1);
	}
	function goAdd(){
		location = '<%=contextPath%>/claim/basicData/ClaimBasicLabourPrice/labourPriceAddInit.do' ;
	}
	function wrapOut(){
		$('dealer_code').value = '' ;
		$('dealer_id').value = '' ;
	}
	function myHandler(value,meta,record){
		var did = record.data.DEALER_ID ;
		return '<a href="<%=contextPath%>/claim/basicData/ClaimBasicLabourPrice/labourPriceUpdateInit.do?did='+did+'">[修改]</a>' ;
	}
</script>
</body>
</html>
